﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;

namespace Sustainalytics.ClientDW.Entities
{
    public class SyncLog
    {
        public Guid Id { get; set; }
        public DateTime TimeStart { get; set; }
        public DateTime? TimeEnd { get; set; }
        
        [BsonRepresentation(BsonType.String)]
        public LastSessionStatus Status { get; set; }
        public string TimeSync { get; set; }
        [BsonRepresentation(BsonType.String)]
        public DatabaseGroup DatabaseGroup { get; set; }
        public bool IsAutomatedSync { get; set; }
    }
}
